<%#
# To change this template, choose Tools | Templates
# and open the template in the editor.
%>

<div id="function">
  <table width="500" border="0">
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
  </table>
</div>


<div id="post"><div id="right">
  <div id="options">
    <%= render :layout=>"/login/user_function"  %>
  </div>
 </div>
<%  uuser=User.find(params[:id]) %>

    <div id="content">
        <fieldset>
    <h2>修改用户信息</h2> 
    <div id="reg_box">
      <% form_tag  :controller=>"users", :action=>"update"  ,:id=>@user.id do  %>
      <div id="box_t">
          <p> 用户帐号 ：</p><%=h @user.account %>
          <p>邮箱：</p><%=h @user.e_mail  %>
         <p> 用户权限 ：</p> <%= text_field_tag :permission ,params[:permission] %>
         <p> 用户惩罚时间 ：</p> <%= date_select  :punishment,"written_on" %>
          <p><%= submit_tag '提交' %></p>
          <% end %>
          </div>
     </div>


  </fieldset>
   </div>
</div>

<div id="footer">
   <%= link_to 'Back', :action=>"index"  %><p>Design by Muby</p>
</div>





